package tau.dimes.visualization.applet;

/**
 * Represents a pair of angle and matching coordinate.
 */
class AngleCoordinatePair
{
	private int angle;
	private float coordinate;

	/**
	 * Initializes a new instance of AngleCoordinatePair.
	 * @param angle An integer representing an angle.
	 * @param coordinate A float representing a coordinate.
	 */
	AngleCoordinatePair(int angle, float coordinate)
	{
		this.setAngle(angle);
		this.setCoordinate(coordinate);
	}

	/**
	 * Sets the angle.
	 * @param angle An integer representing an angle.
	 */
	void setAngle(int angle)
	{
		this.angle = angle;
	}

	/**
	 * Gets the angle.
	 * @return The angle.
	 */
	Integer getAngle()
	{
		return angle;
	}

	/**
	 * Sets the coordinate.
	 * @param coordinate A float representing a coordinate.
	 */
	void setCoordinate(float coordinate)
	{
		this.coordinate = coordinate;
	}

	/**
	 * Gets the coordinate.
	 * @return The coordinate.
	 */
	float getCoordinate()
	{
		return coordinate;
	}
}